package com.fingard.dsp.bank.directbank.cmbc02.util;

import java.util.HashMap;



public class ErrorCode {
	private static HashMap<String, String> errorMsgMap = new HashMap<String, String>();
	static {
		errorMsgMap.put(ErrorCode.UNPS_CORE_001, "加载配置文件失败");
		errorMsgMap.put(ErrorCode.UNPS_CORE_002, "加载证书失败");
		errorMsgMap.put(ErrorCode.UNPS_CORE_003, "创建http连接失败");
		errorMsgMap.put(ErrorCode.UNPS_CORE_004, "加签失败");
		errorMsgMap.put(ErrorCode.UNPS_CORE_005, "加密失败");
		errorMsgMap.put(ErrorCode.UNPS_CORE_006, "解密失败");
		errorMsgMap.put(ErrorCode.UNPS_CORE_007, "验签失败");
		errorMsgMap.put(ErrorCode.UNPS_CORE_008, "保存文件失败");
		errorMsgMap.put(ErrorCode.UNPS_CORE_009, "类型转换错误");
		errorMsgMap.put(ErrorCode.UNPS_CORE_010, "tokenId为空");
		errorMsgMap.put(ErrorCode.UNPS_CORE_011, "找不到商户安全集成方案");
		errorMsgMap.put(ErrorCode.UNPS_CORE_012, "读取文件失败");
		errorMsgMap.put(ErrorCode.UNPS_CORE_013, "写入文件失败");
	}
	/** 加载配置文件失败 */
	public static final String UNPS_CORE_001 = "UNPS_CORE_001";
	/** 加载证书失败 */
	public static final String UNPS_CORE_002 = "UNPS_CORE_002";
	/** 创建http连接失败 */
	public static final String UNPS_CORE_003 = "UNPS_CORE_003";
	/** 加签失败 */
	public static final String UNPS_CORE_004 = "UNPS_CORE_004";
	/** 加密失败 */
	public static final String UNPS_CORE_005 = "UNPS_CORE_005";
	/** 解密失败 */
	public static final String UNPS_CORE_006 = "UNPS_CORE_006";
	/** 验签失败 */
	public static final String UNPS_CORE_007 = "UNPS_CORE_007";
	/** 保存文件失败 */
	public static final String UNPS_CORE_008 = "UNPS_CORE_008";
	/** 类型转换错误 */
	public static final String UNPS_CORE_009 = "UNPS_CORE_009";
	/** tokenId为空 */
	public static final String UNPS_CORE_010 = "UNPS_CORE_010";
	/** 找不到商户安全集成方案 */
	public static final String UNPS_CORE_011 = "UNPS_CORE_011";
	/** 读取文件失败 */
	public static final String UNPS_CORE_012 = "UNPS_CORE_012";
	/** 写入文件失败 */
	public static final String UNPS_CORE_013 = "UNPS_CORE_013";

	public static String getErrorMsg(String errorCode) {
		return errorMsgMap.get(errorCode);
	}
}
